import React from 'react'
import ReactDOM from 'react-dom/client'
import { BrowserRouter ,HashRouter} from 'react-router-dom'
import { Provider } from 'react-redux'
import AppLayout from '@/layout/index.jsx'
import { ConfigProvider } from 'antd';
import zhCN from 'antd/es/locale/zh_CN';

import App from './App'
import store from "./store";
//样式初始化
import "reset-css"
//引入antd框架样式d
import 'antd/dist/reset.css'
//引入全局样式
import "./assets/styles/global.less"
import "./static/iconfont/iconfont.css"

import { get, post, postBlob, postMedia, postJson, put, deletefn, postFormData } from "@/api/request";
React.$get = get;
React.$post = post;
React.$put = put;
React.$delete = deletefn;
React.$postBlob = postBlob;
React.$postMedia = postMedia;
React.$postJson = postJson;
React.$postFormData = postFormData;
ReactDOM.createRoot(document.getElementById('root')).render(
  <HashRouter >
    <Provider store={store}>
        <ConfigProvider locale={zhCN}>
            <App />
        </ConfigProvider>
    </Provider>
  </HashRouter>
)
